package com.iweb.report_statistic.model;

import java.math.BigDecimal;

public class Report {
    /**
     * 报表数据模型类
     * 封装商品库存报表的统计信息
     */
        private String productId;      // 商品ID
        private String productName;    // 商品名称
        private String category;       // 商品分类
        private int stockQuantity;     // 库存数量
        private int warningThreshold;  // 库存预警阈值
        private BigDecimal totalValue;     // 库存总价值(单价×数量)
        private BigDecimal inBoundTotal;      // 累计入库数量
        private BigDecimal outBoundTotal;     // 累计出库数量


        @Override
        public String toString() {
            return "ReportData{" +
                    "productId=" + productId +
                    ", productName'" + productName + '\'' +
                    ", category='" + category + '\'' +
                    ", stockQuantity='" + stockQuantity + '\'' +
                    ", warningThreshold='" + warningThreshold + '\'' +
                    ", totalValue='" + totalValue + '\'' +
                    ", inBoundTotal='" + inBoundTotal + '\'' +
                    ", outBoundTotal='" + outBoundTotal + '\'' +
                    '}';
        }




        // Getter和Setter方法
        public String getProductId() {
            return productId;
        }

        public void setProductId(String productId) {
            this.productId = productId;
        }

        public String getProductName() {
            return productName;
        }

        public void setProductName(String productName) {
            this.productName = productName;
        }

        public String getCategory() {
            return category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        public int getStockQuantity() {
            return stockQuantity;
        }

        public void setStockQuantity(int stockQuantity) {
            this.stockQuantity = stockQuantity;
        }

        public int getWarningThreshold() {
            return warningThreshold;
        }

        public void setWarningThreshold(int warningThreshold) {
            this.warningThreshold = warningThreshold;
        }

        public BigDecimal getTotalValue() {
            return totalValue;
        }

        public void setTotalValue(BigDecimal totalValue) {
            this.totalValue = totalValue;
        }

        public BigDecimal getInBoundTotal() {
            return inBoundTotal;
        }

        public void setInBoundTotal(BigDecimal inBoundTotal) {
            this.inBoundTotal = inBoundTotal;
        }

        public BigDecimal getOutBoundTotal() {
            return outBoundTotal;
        }

        public void setOutBoundTotal(BigDecimal outBoundTotal) {
            this.outBoundTotal = outBoundTotal;
        }

        public Report(String productId, String productName, String category, int stockQuantity, int warningThreshold, BigDecimal totalValue, BigDecimal inBoundTotal, BigDecimal outBoundTotal) {
            this.productId = productId;
            this.productName = productName;
            this.category = category;
            this.stockQuantity = stockQuantity;
            this.warningThreshold = warningThreshold;
            this.totalValue = totalValue;
            this.inBoundTotal = inBoundTotal;
            this.outBoundTotal = outBoundTotal;
        }

        public Report() {
        }

    }

